import { createApp } from 'vue'
import axios from 'axios'
import Components from '@/components/index'
import { useI18n } from '@/i18n/index'
import useDirectives from '@/directives'
import useElectron from '@/electron'
import App from './App.vue'

import '@/assets/styles/index.scss'
import '@/assets/iconfont/iconfont.css'
import 'virtual:svg-icons-register'
import 'default-passive-events';


if (typeof window !== 'undefined') {
  window.axios = axios
}

const vfApp = createApp(App)
vfApp.use(Components)
useI18n(vfApp)
useDirectives(vfApp)
useElectron(vfApp)

vfApp.mount('#app')
